#pragma once

#include <QWidget>
#include "ui_dd.h"
#include "opencv2/core.hpp"


class dd : public QWidget
{
	Q_OBJECT

public:
	dd(QWidget *parent = Q_NULLPTR);
	~dd();

private slots:
	void on_btn_choose_clicked();
	void on_btn_draw_clicked();
	void on_btn_output_clicked();
	void on_btn_draw_gradline_clicked();

private:
	void refreshLabel();

	void mousePressEvent(QMouseEvent *);
	void mouseMoveEvent(QMouseEvent *);
	void mouseReleaseEvent(QMouseEvent *);

	Ui::dd ui;
	cv::Mat origin_mat_;
	cv::Mat result_mat_;
};
